<!DOCTYPE html>
<html>
	<head th:replace="/mobile/common::head(~{::custom_settings})">
		<th:block th:fragment="custom_settings">
			<title>顺山科技智慧生活服务平台</title>
			<link type="text/css" rel="stylesheet" th:href="@{{css}/mobile/api/pay.css(css=${css})}"/>
			<script th:if="${trade.pay_api == 'alipay'}" type="text/javascript" src="https://gw.alipayobjects.com/as/g/h5-lib/alipayjsapi/3.1.1/alipayjsapi.min.js"></script>
			<script th:inline="javascript">
				var __trade = [[${trade}]];
			</script>
		</th:block>
	</head>
	
	<body>
		<div id="payresult" class="weui-tab hide"><div class="weui-tab-bd-pay-success">
	    	<div class="weui-tab-bd-pay-suc">
	    		<img th:src="@{{image}/mobile/api/{api}.png(image=${image},api=${trade.pay_api})}"/>
	    		<span id="resulttext"></span>
	    	</div>
	    	<div th:if="${trade.pay_api == 'weixin'}" id="resultamount" class="weui-tab-bd-pay-p hide">
	    		<h1>￥<b th:text="${trade.total_fee}"></b></h1>
	    	</div>
	    	<div th:if="${trade.pay_api == 'alipay'}" id="resultamount" class="weui-tab-bd-pay-p hide">
	    		<h1>￥<b th:text="${#numbers.formatDecimal(trade.total_amount, 1, 2)}"></b></h1>
	    	</div>
		    <div th:if="${trade.pay_api == 'weixin'}" class="weui-tab-pay-btn">
		    	<a href="javascript:void(0);" onclick="viewClick();" class="weui-btn weui-btn_disabled weui-btn_warn">查看订单</a>
		    </div>
	    </div></div>
		
		<script type="text/javascript" th:src="@{{js}/mobile/api/pay.js(js=${js})}"></script>
	</body>
</html>
